<template>
	<div>
		<van-row>
		  <van-col span="3"><router-link to="/guahao"><van-icon name="arrow-left" size="30"/> </router-link> </van-col>
		  
		  <van-col span="18">医院简介</van-col>
		  
		  <van-col span="3"><router-link to="/m2"><van-icon name="share-o" size="30"/> </router-link></van-col>
		</van-row>
		
		
		
		<div style="margin-top:10px;">
			<div></div>
			
			<div>
				<van-row >
					<van-col span="2"></van-col>
					<van-col span="4" style="margin-top: 1.25rem;"> 
					<van-image
					  round
					  width="3rem"
					  height="3rem"
					  :src="hospital.url"
					/>
					
					</van-col>
					<van-col span="18"></van-col>
				</van-row>
			</div>
			
			
			
			<div>
				<h3 style="margin-right: 150px;margin-top: 10px;">{{hospital.name}}</h3>
				
				<h6 >国家重点科室：{{hospital.gz}}</h6> 
				<h6>省级重点科室：{{hospital.sz}}</h6>
			</div>
			
		</div>
		
		<div style="margin-top: 3.125rem;">
			<h6 style="color: darkgray;">没有更多了...</h6>
		</div>
		<div style="margin-top: 6.25rem;"></div>
		
		<div style="margin-bottom: 0px;">
		      <van-sticky>
		        <van-tabbar v-model="active" route>
		          <van-tabbar-item replace to="/guahao"  icon="smile-o">首页</van-tabbar-item>
		          <van-tabbar-item icon="manager-o" to="/ghmy">我的</van-tabbar-item>
		        </van-tabbar>
		      </van-sticky>
		</div>
	
	</div>
</template>

<script>
	export default{
		data(){
			return{
				hospital:{
					id:"",
					name:"",
					url:"",
					gz:"",
					sz:"",
					mes:"",
				}
			}
		},
		created(){
			// var uc={
			// 		kName:this.$route.query,	
			// }
			var ka=this.$route.query;
			console.log(ka);
			
			this.axios.get("rh/hmesage?name="+ka.name).then((res) => {
				console.log(res.data)
				if(res.data.code==200){
					this.hospital=res.data.data;
				}else{
					this.$toast({
						message: "亲，网络异常",
						icon: 'close'
					});
				}
			})
		},
		
		
	}
	
	
</script>

<style>
</style>
